2004-11-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilefilter.c: Don't try to use xdgmime on
+ Windows where we don't build it. (#157944, J. Ali Harlow)
+
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
2004-11-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilefilter.c: Don't try to use xdgmime on
+ Windows where we don't build it. (#157944, J. Ali Harlow)
+
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
2004-11-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilefilter.c: Don't try to use xdgmime on
+ Windows where we don't build it. (#157944, J. Ali Harlow)
+
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
2004-11-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkfilefilter.c: Don't try to use xdgmime on
+ Windows where we don't build it. (#157944, J. Ali Harlow)
+
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
#include "gtkobject.h"
#include "gtkprivate.h"
+#ifdef G_OS_UNIX
#define XDG_PREFIX _gtk_xdg
#include "xdgmime/xdgmime.h"
+#endif
typedef struct _GtkFileFilterClass GtkFileFilterClass;
typedef struct _FilterRule FilterRule;
{
case FILTER_RULE_MIME_TYPE:
if (filter_info->mime_type != NULL
+#ifdef G_OS_UNIX
&& xdg_mime_mime_type_subclass (filter_info->mime_type, rule->u.mime_type))
+#else
+ && strcmp (rule->u.mime_type, filter_info->mime_type) == 0)
+#endif
return TRUE;
break;
case FILTER_RULE_PATTERN: